/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package transervfx.Dato.Entidad;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;


/**
 *
 * @author oscar
 */
@NamedQueries({
    @NamedQuery( name = "Externa.findAll", query = "SELECT a FROM Externa a"),
})
@Entity
@DiscriminatorValue("E")
public class Externa extends Agencia implements Serializable {
    private static final long serialVersionUID = 1L;
   
 

    @OneToMany(mappedBy = "externa")
    private List<GuiaSaca> guiasSacas;
  
   
    @ManyToMany
    private Set<Localidad> zonasCobertura=new HashSet();

    public Externa() {
    }

    public List<GuiaSaca> getGuiasSacas() {
        return guiasSacas;
    }

    public void setGuiasSacas(List<GuiaSaca> guiasSacas) {
        this.guiasSacas = guiasSacas;
    }

    public Set<Localidad> getZonasCobertura() {
        return zonasCobertura;
    }

    public void setZonasCobertura(Set<Localidad> zonasCobertura) {
        this.zonasCobertura = zonasCobertura;
    }
    
    
}
